package com.cs.manaer.service;

import com.cs.manaer.controller.req.AppReleaseReqMsg;
import com.cs.manaer.controller.res.ListAppReleaseResMsg;
import com.cs.manaer.po.AppRelease;
import com.lin.common.error.CustomRuntimeException;

import java.io.IOException;

public interface AppReleaseService {
    /**
     *
     * @param id 发布的ID
     * @param optFlag 1：发布，3暂停
     * @return
     * @throws CustomRuntimeException
     */
    Integer release(Long id,String optFlag) throws CustomRuntimeException;

    ListAppReleaseResMsg listAppRelease(Integer pageSize, Integer pageNo);

    Integer saveAppRelease(AppReleaseReqMsg reqMsg) throws CustomRuntimeException, IOException;

    AppRelease detail(Long id);

    Integer delAppRelease(Long id);
}
